<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>鱼百科</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" href="../../../css/mui.min.css" />
		<style>
			.mui-bar {
				box-shadow: none;
			}
			
			.mui-bar-nav~.mui-content {
				padding-top: 30px;
			}
			
			.mui-table-view-cell.mui-active {
				background-color: #FFFFFF;
			}
			
			#mask {
				position: fixed;
				top: 0;
				right: 0;
				bottom: 0;
				left: 0;
				z-index: 9;
				background-color: rgba(0, 0, 0, .4);
			}
		</style>
	</head>

	<body>
		<header id="header" class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">鱼百科</h1>
		</header>
		<div class="mui-content">
			<ul class="mui-table-view suborder">
				<li class="mui-table-view-cell" style="background-color: #dfdfdf;">鲈形目</li>
				<li class="mui-table-view-cell mui-media">
					<img class="mui-media-object mui-pull-left" src="../../images/fisImg/fish1.png" width="60px" height="60px">
					<div class="mui-media-body" style="height: 40px;">
						<p style="line-height: 40px;font-size: 1em;margin-left: 1em;"><span style="position: absolute;right: 3em;">3</span></p>
					</div>
				</li>
			</ul> 
			<div id="mask" style="position: fixed;left: 0;top: 0;display: none;"></div>
			<div id="fishClass" style="position: fixed;right: 0;top: 0;background-color: #FFFFFF;display: none;">
				<ul id="type" class="mui-table-view type" style="margin-top: 45px;">
					<li class="mui-table-view-cell" style="background-color: #dfdfdf;">牙鲷属</li>
					<li id="fishType" class="mui-table-view-cell mui-media">
						<img class="mui-media-object mui-pull-left" src="../../images/fisImg/fish1.png" width="60px">
						<div class="mui-media-body" style="height: 40px;">
							<p style="line-height: 40px;font-size: 1em;margin-left: 1em;">红笠</p>
						</div>
					</li>
					<li id="dayanyadiao" class="mui-table-view-cell mui-media">
						<img class="mui-media-object mui-pull-left" src="../../images/fisImg/dayan.jpg" width="60px">
						<div class="mui-media-body" style="height: 40px;">
							<p style="line-height: 40px;font-size: 1em;margin-left: 1em;">大眼牙雕</p>
						</div>
					</li>
				</ul>
			</div>
		</div>
		<script src="../../../js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init();
			//鱼目查看鱼种
			mui(".suborder").on("tap", "li", function() {
				document.getElementById("fishClass").style.display = "block";
				document.getElementById("mask").style.display = "block";
			});
			//选择鱼种
			mui(".type").on("tap", "li", function() {
				document.getElementById("fishClass").style.display = "none";
				document.getElementById("mask").style.display = "none";
			});
			//鱼的详细信息
			document.getElementById("fishType").addEventListener("tap", function() {
				mui.openWindow({
					url: "fishDetail.html",
					id: "fishDetail",
					extras:{
					        name:'fishType',
					    }
				})
			})
			//大眼牙雕dayanyadiao
			document.getElementById("dayanyadiao").addEventListener("tap", function() {
				mui.openWindow({
					url: "fishDetail.html",
					id: "fishDetail",
					extras:{
					        name:'dayanyadiao',
					    }
				})
			})
			//隐藏遮罩
			document.getElementById("header").addEventListener("tap", function() {
				document.getElementById("fishClass").style.display = "none";
				document.getElementById("mask").style.display = "none";
			});
			document.getElementById("mask").addEventListener("tap", function() {
				document.getElementById("fishClass").style.display = "none";
				document.getElementById("mask").style.display = "none";
			})
			var windowWidth = null;
			mui.plusReady(function() {
				windowWidth = plus.screen.resolutionWidth;
				windowHeight = plus.screen.resolutionHeight;
				document.getElementById("fishClass").style.width = windowWidth * 0.8 + 'px';
				document.getElementById("fishClass").style.height = windowHeight + 'px';
				document.getElementById("mask").style.width = windowWidth * 0.2 + 'px';
				document.getElementById("mask").style.height = windowHeight + 'px';
			})
		</script>
	</body>

</html>